package com.baitiaojun.user.api;

import com.baitiaojun.api.vo.JsonRes;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @类名 UserFansApi
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/1/15 17:42
 * @版本 1.0
 */
@RequestMapping("/user/fans")
public interface UserFansApi {

    @ApiOperation("查看粉丝")
    @GetMapping("/search-user-fans")
    JsonRes getFans() throws Exception;

    @ApiOperation(value = "根据userid查询当前用户的所有粉丝", hidden = true)
    @GetMapping("/search-user-fans-with-userid")
    JsonRes getFans(@RequestParam("userId") Long userId) throws Exception;

    @ApiOperation(value = "根据userid查询当前用户的所有粉丝", hidden = true)
    @GetMapping("/search-user-fansList-with-userid")
    JsonRes getFansList(@RequestParam Long userId) throws Exception;
}
